for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
// InvalidPathException.js
"use strict";
// :: DEPENDENCIES
// load native dependencies
const path = require("path");
// load local dependencies
const IllegalArgumentException = require(path.join(__dirname, "IllegalArgumentException.js"));
// :: BASIC SETUP
/**
* Unchecked exception thrown when path string cannot be converted into a Path because the path string contains invalid
* characters, or the path string is invalid for other file system specific reasons.
* @param {String} message - The message describing the <tt>InvalidPathException</tt>.
* @param {Number} code - The unique code that identifies the cause of the <tt>InvalidPathException</tt>.
* @augments IllegalArgumentException
* @constructor
* @see https://docs.oracle.com/javase/8/docs/api/java/nio/charset/InvalidPathException.html
*/
const InvalidPathException = function (message, code) {
IllegalArgumentException.call(this, message, code);
};
// :: INHERITANCE
// set the IllegalArgumentException 'class' as the parent in the prototype chain
InvalidPathException.prototype = Object.create(IllegalArgumentException.prototype);
InvalidPathException.prototype.constructor = IllegalArgumentException;
// :: PROTOTYPE
* The name used to identify a <tt>InvalidPathException</tt>.
* @type {String}
* @default
InvalidPathException.prototype.name = "InvalidPathException";
// :: EXPORT
// export the InvalidPathException 'class'
module.exports = InvalidPathException;